<template>
  <a-config-provider :locale="zhCN">
    <div id="app">
      <!--      <div class="basic-content"></div>-->
      <router-view />
    </div>
  </a-config-provider>
</template>
<script setup>
import zh_CN from "ant-design-vue/es/locale/zh_CN";
const zhCN = zh_CN;
import { getQueryStringData } from "@/utils/tool.js";
import { commonStore } from "@/store/common-store";

async function getTokenData() {
  let token = getQueryStringData("token") || "";
  sessionStorage.setItem("X-Access-Token", token);
}
getTokenData();
commonStore().getAuthList();
</script>
<style lang="less" scoped>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  position: relative;
}
.basic-content {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-153px);
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  z-index: 10;
}
/deep/
  .ant-select-dropdown-menu-item:hover:not(.ant-select-dropdown-menu-item-disabled) {
  background-color: #e8fffc;
}
</style>
